/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rie06.openvoip.client.IHM.home;

import com.rie06.openvoip.client.IHM.communication.CommunicationController;
import com.rie06.openvoip.client.IHM.home.InterfaceClient;
import java.awt.*;
import javax.swing.*;
import org.apache.log4j.Logger;

/**
 * @author sylvain
 */
public class WindowNewContact extends JFrame{
    
    private JLabel labelDescription;
    private JTextField textDescription;
    private JLabel labelIP;
    private JTextField textIP;
    private JButton buttonValidContact;
    private InterfaceClient interfaceClient;
    private CommunicationController communicationController;
    private static final Logger logger = Logger.getLogger(WindowNewContact.class);
    
    public WindowNewContact(InterfaceClient interfaceClient, CommunicationController communicationController){
        
        this.communicationController = communicationController;
        communicationController.setWindowNewContact(this);
        this.interfaceClient = interfaceClient;
   
        this.setTitle(" Nouveau Contact ");
        this.setSize(300,300);
        this.setLocation(200,200);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
  
        
        // ******************* DISPLAY *******************/
	GridLayout windowStyleContact = new GridLayout(0,1);
	this.getContentPane().setLayout(windowStyleContact);
    
	this.setVisible(true);
	// *************************************************/
        

    }

    public JTextField getTextDescription() {
        return textDescription;
    }

    public void setTextDescription(JTextField textDescription) {
        this.textDescription = textDescription;
    }

    public JTextField getTextIP() {
        return textIP;
    }

    public void setTextIP(JTextField textIP) {
        this.textIP = textIP;
    }

    public InterfaceClient getInterfaceClient() {
        return interfaceClient;
    }

    public void setInterfaceClient(InterfaceClient interfaceClient) {
        this.interfaceClient = interfaceClient;
    }
          
    
    
    
}
